<script lang="ts" setup>
import useStore from '@/store'
const { home } = useStore()
// 调用获取轮播图数据的方法
home.getBannerList()
</script>
<template>
  <div class="home-banner">
    <!-- 轮播图 -->
    <XtxCarousel
      :list="home.bannerList"
      :interval="1000"
      autoplay
      isShowdots
    ></XtxCarousel>
  </div>
</template>

<style scoped lang="less">
// 在vue3中less的深度选择器是 :deep(选择器){样式}
// vue3 scss深度选择器是 ::v-deep(选择器){样式}
:deep(.carousel-btn.prev) {
  left: 260px !important;
}
:deep(.carousel-indicator) {
  padding-left: 260px !important;
}
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
  background-color: pink;
}
</style>
